<?php
/**
 * Created by PhpStorm.
 * User: lijie
 * Date: 2018/10/3
 * Time: 13:46
 */
namespace app\api\model;

use think\Model;

class Lulog extends Model{

    protected $dateFormat = 'Y-m-d H:i:s';
    protected $createTime = 'pay_time';
    /**
     * Notes:  查看年卡
     * Create Date: 2018/10/3
     * Create by :lijie
     */
    public function myYearCardLog($where,$pagenum=1,$listNum=10)
    {
        return $this->where($where)->order("pay_time desc")->page($pagenum,$listNum)->select();
    }

    /**
     * Notes:  优惠券产品详情
     * Create Date: 2018/10/3
     * Create by :lijie
     */
    public function couponInfo($param)
    {
        return $this->where($param)->find();
    }
}